package xyz.honghong520.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import xyz.honghong520.entity.Teaching;

@Repository
public interface TeachingDao {

    // 查询所有授课信息
    List<Teaching> queryAll();

    // 教师申请授课
    int insertTeaching(Teaching Teaching);

    // 批量添加授课信息
    int insertTeachingBatch(List<Teaching> Teachings);

    // 删除授课信息
    int deleteTeaching(Integer tcid);

    // 批量删除授课信息
    int deleteTeachingsBatch(List<Teaching> Teachings);

    // 根据授课id查询授课信息
    Teaching queryTeachingById(Integer tcid);

    // 修改授课信息
    int updateTeaching(Teaching Teaching);

    // 通过教师授课
    int allowTeaching(Teaching Teaching);

    // 根据教职工号、课程号查询授课信息
    List<Teaching> searchByKeyword(String q);

    int allowTeachingsBatch(List<Teaching> teachings);

    List<Teaching> queryAllGroupTeacher();

    List<Teaching> queryTeachingByTid(int id);

}
